<template>
	<view>
		<u-navbar back-text="返回" :title="notice.title"></u-navbar>
		<view style="padding: 36rpx;">
			<view style="padding: 24rpx 0; text-align: center; font-size: 36rpx; font-weight: 600; margin-bottom: 40rpx;">
				{{notice.title}}
			</view>
			<u-parse :html="notice.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				notice: {},
			}
		},
		onLoad(option){
			var that = this;
			this.id = option.id;
			uni.request({
				url: this.$unishow + 'api/index/notice_view?id=' + this.id,
				method: 'GET',
				data: {},
				success: res => {
					that.notice = res.data;
					console.log(that.notice);
				},
				fail: () => {},
				complete: () => {}
			});
		},
		methods: {

		}
	}
</script>

<style>

</style>
